-
Notifications
You must be signed in to change notification settings - Fork 181
Refactor postgresql migration #219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
320aa34
to
6f79234
Compare
lib/migration.js
Outdated
} | ||
if (!err) { | ||
data.forEach(function(field) { | ||
field.type = mapPostgreSQLDatatypes(field.type, field.length); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mapPostgreSQLDatatypes
is missing after refactor
7ad2413
to
760e761
Compare
* @param {String} property The property name | ||
* @returns {String} The column type | ||
*/ | ||
PostgreSQL.prototype.columnDataType = function(model, property) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, why changing this function from columnDataType
to buildColumnType
?
we need both of them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved columnDataType
to base connector loopbackio/loopback-connector@752359f
We still have buildColumnType
in postgresql
@slnode test please |
760e761
to
15c20ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Extract getTableStatus & autoupdate Extract isActual function Extract getDropColumns into base connector Extract addPropertyToActual to base connector Extract searchForPropertyInActual to base Extract propertyHasNotBeenDeleted to base Extract applySqlChanges to base Extract columnDataType to base connector Use mapPostgreSQLDatatypes in showFields
15c20ae
to
d6b1504
Compare
Description
Refactor discovery test cases
Related issues
connect to loopbackio/loopback-connector#15